package cn.legend.travel.destination.main.dao.persist.repository.impl;

import cn.legend.travel.destination.main.dao.persist.mapper.GuideMapper;
import cn.legend.travel.destination.main.dao.persist.repository.IGuideRepository;
import cn.legend.travel.destination.main.pojo.vo.GuideVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class GuideRepository implements IGuideRepository {
    @Autowired
    private GuideMapper guideMapper;

    @Override
    public List<GuideVO> selectListByDestinationName(String destinationName, Integer type) {
        return guideMapper.selectListByDestinationName(destinationName, type);
    }

    @Override
    public List<GuideVO> trendingSelectListByName(String destinationName) {
        return guideMapper.trendingSelectListByName(destinationName);
    }

    @Override
    public List<GuideVO> latestSelectListByName(String destinationName) {
        return guideMapper.latestSelectListByName(destinationName);
    }

    @Override
    public List<GuideVO> selectAll() {
        return guideMapper.selectAll();
    }
}
